<?php
namespace Admin\Controller;
use Think\Controller;
class CpController extends Controller {

    public function index()
    {
          //开奖期数
        $kaijiang=array(20190311257
        ,20190311258
        ,20190311259
        ,20190311260
        ,20190311261
        ,20190311262
        ,20190311263
        ,20190311264
        ,20190311265
        ,20190311266
        ,20190311267
        ,20190311268
        ,20190311269
        ,20190311270
        ,20190311271
        ,20190311272
        ,20190311273
        ,20190311274
        ,20190311275
        ,20190311276
        ,20190311277
        ,20190311278
        ,20190311279
        ,20190311280
        ,20190311281
        ,20190311282
        ,20190311283
        ,20190311284
        ,20190311285
        ,20190311286
        ,20190311287
        ,20190311288
        ,20190312001
        ,20190312002
        ,20190312003
        ,20190312004
        ,20190312005
        ,20190312006
        ,20190312007
        ,20190312008
        ,20190312009
        ,20190312010
        ,20190312011
        ,20190312012
        ,20190312013
        ,20190312014
        ,20190312015
        ,20190312016
        ,20190312017
        ,20190312018
        ,20190312019
        ,20190312020
        ,20190312021
        ,20190312022
        ,20190312023
        ,20190312024
        ,20190312025
        ,20190312026
        ,20190312027
        ,20190312028
        ,20190312029
        ,20190312030
        ,20190312031
        ,20190312032
        ,20190312033
        ,20190312034
        ,20190312035
        ,20190312036
        ,20190312037
        ,20190312038
        ,20190312039
        ,20190312040
        ,20190312041
        ,20190312042
        ,20190312043
        ,20190312044
        ,20190312045
        ,20190312046
        ,20190312047
        ,20190312048
        ,20190312049
        ,20190312050
        ,20190312051
        ,20190312052
        ,20190312053
        ,20190312054
        ,20190312055
        ,20190312056
        ,20190312057
        ,20190312058
        ,20190312059
        ,20190312060
        ,20190312061
        ,20190312062
        ,20190312063
        ,20190312064
        ,20190312065
        ,20190312066
        ,20190312067
        ,20190312068
        ,20190312069
        ,20190312070
        ,20190312071
        ,20190312072
        ,20190312073
        ,20190312074
        ,20190312075
        ,20190312076
        ,20190312077
        ,20190312078
        ,20190312079
        ,20190312080
        ,20190312081
        ,20190312082
        ,20190312083
        ,20190312084
        ,20190312085
        ,20190312086
        ,20190312087
        ,20190312088
        ,20190312089
        ,20190312090
        ,20190312091
        ,20190312092
        ,20190312093
        ,20190312094
        ,20190312095
        ,20190312096
        ,20190312097
        ,20190312098
        ,20190312099
        ,20190312100
        ,20190312101
        ,20190312102
        ,20190312103
        ,20190312104
        ,20190312105
        ,20190312106
        ,20190312107
        ,20190312108
        ,20190312109
        ,20190312110
        ,20190312111
        ,20190312112
        ,20190312113
        ,20190312114
        ,20190312115
        ,20190312116
        ,20190312117
        ,20190312118
        ,20190312119
        ,20190312120
        ,20190312121
        ,20190312122
        ,20190312123
        ,20190312124
        ,20190312125
        ,20190312126
        ,20190312127
        ,20190312128
        ,20190312129
        ,20190312130
        ,20190312131
        ,20190312132
        ,20190312133
        ,20190312134
        ,20190312135
        ,20190312136
        ,20190312137
        ,20190312138
        ,20190312139
        ,20190312140
        ,20190312141
        ,20190312142
        ,20190312143
        ,20190312144
        ,20190312145
        ,20190312146
        ,20190312147
        ,20190312148
        ,20190312149
        ,20190312150
        ,20190312151
        ,20190312152
        ,20190312153
        ,20190312154
        ,20190312155
        ,20190312156
        ,20190312157
        ,20190312158
        ,20190312159
        ,20190312160
        ,20190312161
        ,20190312162
        ,20190312163
        ,20190312164
        ,20190312165
        ,20190312166
        ,20190312167
        ,20190312168);
        /* $kaijiang=array(20190316282
         ,20190316283
         ,20190316284
         ,20190316285
         ,20190316286
         ,20190316287
         ,20190316288
         ,20190316289
         ,20190316290
         ,20190316291
         ,20190316292
         ,20190316293
         ,20190316294
         ,20190316295
         ,20190316296
         ,20190316297
         ,20190316298
         ,20190316299
         ,20190316300
         ,20190316301
         ,20190316302
         ,20190316303
         ,20190316304
         ,20190316305
         ,20190316306
         ,20190316307
         ,20190316308
         ,20190316309
         ,20190316310
         ,20190316311
         ,20190316312
         ,20190316313
         ,20190316314
         ,20190316315
         ,20190316316
         ,20190316317
         ,20190316318
         ,20190316319
         ,20190316320
         ,20190316321
         ,20190316322
         ,20190316323
         ,20190316324
         ,20190316325
         ,20190316326
         ,20190316327
         ,20190316328
         ,20190316329
       ,20190316330
         ,20190316331);
         /* $kaijiang=array(20190316628,
              20190316629,
              20190316630,
              20190316631,
              20190316632,
              20190316633,
              20190316634,
              20190316635,
              20190316636,
              20190316637,
              20190316638,
              20190316639,
              20190316640,
              20190316641,
              20190316642,
              20190316643,
              20190316644,
              20190316645,
              20190316646,
              20190316647,
              20190316648,
              20190316649,
              20190316650,
              20190316651,
              20190316652,
              20190316653,
              20190316654,
              20190316655,
              20190316656,
              20190316657,
              20190316658,
              20190316659,
              20190316660,
              20190316661,
              20190316662,
              20190316663,
              20190316664,
              20190316665,
              20190316666,
              20190316667,
              20190316668,
              20190316669,
              20190316670,
              20190316671,
              20190316672,
              20190316673,
              20190316674,
              20190316675,
             0190316676,
              20190316677);
          /*  $kaijiang=array(
                20190316665,
                20190316666,
                20190316667,
                20190316668,
                20190316669,
                20190316670,
                20190316671,
                20190316672,
                20190316673,
                20190316674,
                20190316675,
                20190316676,
                20190316677,
                20190316678,
                20190316679,
                20190316680,
                20190316681,
                20190316682,
                20190316683,
                20190316684,
                20190316685,
                20190316686,
                20190316687,
                20190316688,
                20190316689,
                20190316690,
                20190316691,
                20190316692,
                20190316693,
                20190316694,
                20190316695,
                20190316696,
                20190316697,
                20190316698,
                20190316699,
                20190316700,
                20190316701,
                20190316702,
                20190316703,
                20190316704,
                20190316705,
                20190316706,
                20190316707,
                20190316708,
                20190316709,
                20190316710,
                20190316711,
                20190316712,
                20190316713,
                20190316714
            );*/
        $kaijiang=array(
            20190316222,
            20190316223,
            20190316224,
            20190316225,
            20190316226,
            20190316227,
            20190316228,
            20190316229,
            20190316230,
            20190316231,
            20190316232,
            20190316233,
            20190316234,
            20190316235,
            20190316236,
            20190316237,
            20190316238,
            20190316239,
            20190316240,
            20190316241,
            20190316242,
            20190316243,
            20190316244,
            20190316245,
            20190316246,
            20190316247,
            20190316248,
            20190316249,
            20190316250,
            20190316251,
            20190316252,
            20190316253,
            20190316254,
            20190316255,
            20190316256,
            20190316257,
            20190316258,
            20190316259,
            20190316260,
            20190316261,
            20190316262,
            20190316263,
            20190316264,
            20190316265,
            20190316266,
            20190316267,
            20190316268,
            20190316269,
            20190316270,
            20190316271,
            20190316272,
            20190316273,
            20190316274,
            20190316275,
            20190316276,
            20190316277,
            20190316278,
            20190316279,
            20190316280,
            20190316281,
            20190316282,
            20190316283,
            20190316284,
            20190316285,
            20190316286,
            20190316287,
            20190316288,
            20190317001,
            20190317002,
            20190317003,
            20190317004,
            20190317005,
            20190317006,
            20190317007,
            20190317008,
            20190317009,
            20190317010,
            20190317011,
            20190317012,
            20190317013,
            20190317014,
            20190317015,
            20190317016,
            20190317017,
            20190317018,
            20190317019,
            20190317020,
            20190317021,
            20190317022,
            20190317023,
            20190317024,
            20190317025,
            20190317026,
            20190317027,
            20190317028,
            20190317029,
            20190317030,
            20190317031,
            20190317032,
            20190317033,
            20190317034,
            20190317035,
            20190317036,
            20190317037,
            20190317038,
            20190317039,
            20190317040,
            20190317041,
            20190317042,
            20190317043,
            20190317044,
            20190317045,
            20190317046,
            20190317047,
            20190317048,
            20190317049,
            20190317050,
            20190317051,
            20190317052,
            20190317053,
            20190317054,
            20190317055,
            20190317056,
            20190317057,
            20190317058,
            20190317059,
            20190317060,
            20190317061,
            20190317062,
            20190317063,
            20190317064,
            20190317065,
            20190317066,
            20190317067,
            20190317068,
            20190317069,
            20190317070,
            20190317071,
            20190317072,
            20190317073,
            20190317074,
            20190317075,
            20190317076,
            20190317077,
            20190317078,
            20190317079,
            20190317080,
            20190317081,
            20190317082,
            20190317083,
            20190317084,
            20190317085,
            20190317086,
            20190317087,
            20190317088,
            20190317089,
            20190317090,
            20190317091,
            20190317092,
            20190317093,
            20190317094,
            20190317095,
            20190317096,
            20190317097,
            20190317098,
            20190317099,
            20190317100,
            20190317101,
            20190317102,
            20190317103,
            20190317104,
            20190317105,
            20190317106,
            20190317107,
            20190317108,
            20190317109,
            20190317110,
            20190317111,
            20190317112,
            20190317113,
            20190317114,
            20190317115,
            20190317116,
            20190317117,
            20190317118,
            20190317119,
            20190317120,
            20190317121,
            20190317122,
            20190317123,
            20190317124,
            20190317125,
            20190317126,
            20190317127,
            20190317128,
            20190317129,
            20190317130,
            20190317131,
            20190317132,
            20190317133
        );


        $kaijiang=array(201903230790,
            201903230791,
            201903230792,
            201903230793,
            201903230794,
            201903230795,
            201903230796,
            201903230797,
            201903230798,
            201903230799,
            201903230800,
            201903230801,
            201903230802,
            201903230803,
            201903230804,
            201903230805,
            201903230806,
            201903230807,
            201903230808,
            201903230809,
            201903230810,
            201903230811,
            201903230812,
            201903230813,
            201903230814,
            201903230815,
            201903230816,
            201903230817,
            201903230818,
            201903230819,
            201903230820,
            201903230821,
            201903230822,
            201903230823,
            201903230824,
            201903230825,
            201903230826,
            201903230827,
            201903230828,
            201903230829,
            201903230830,
            201903230831,
            201903230832,
            201903230833,
            201903230834,
            201903230835,
            201903230836,
            201903230837,
            201903230838,
            201903230839,
            201903230840,
            201903230841,
            201903230842,
            201903230843,
            201903230844,
            201903230845,
            201903230846,
            201903230847,
            201903230848,
            201903230849,
            201903230850,
            201903230851,
            201903230852,
            201903230853,
            201903230854,
            201903230855,
            201903230856,
            201903230857,
            201903230858,
            201903230859,
            201903230860,
            201903230861,
            201903230862,
            201903230863,
            201903230864,
            201903230865,
            201903230866,
            201903230867,
            201903230868,
            201903230869,
            201903230870,
            201903230871,
            201903230872,
            201903230873,
            201903230874,
            201903230875,
            201903230876,
            201903230877,
            201903230878,
            201903230879,
            201903230880,
            201903230881,
            201903230882,
            201903230883,
            201903230884,
            201903230885,
            201903230886,
            201903230887,
            201903230888,
            201903230889,
            201903230890,
            201903230891,
            201903230892,
            201903230893,
            201903230894,
            201903230895,
            201903230896,
            201903230897,
            201903230898,
            201903230899,
            201903230900,
            201903230901,
            201903230902,
            201903230903,
            201903230904,
            201903230905,
            201903230906,
            201903230907,
            201903230908,
            201903230909,
            201903230910,
            201903230911,
            201903230912,
            201903230913,
            201903230914,
            201903230915,
            201903230916,
            201903230917,
            201903230918,
            201903230919,
            201903230920,
            201903230921,
            201903230922,
            201903230923,
            201903230924,
            201903230925,
            201903230926,
            201903230927,
            201903230928,
            201903230929,
            201903230930,
            201903230931,
            201903230932,
            201903230933,
            201903230934,
            201903230935,
            201903230936,
            201903230937,
            201903230938,
            201903230939,
            201903230940,
            201903230941,
            201903230942,
            201903230943,
            201903230944,
            201903230945,
            201903230946,
            201903230947,
            201903230948,
            201903230949,
            201903230950,
            201903230951,
            201903230952,
            201903230953,
            201903230954,
            201903230955,
            201903230956,
            201903230957,
            201903230958,
            201903230959,
            201903230960,
            201903230961,
            201903230962,
            201903230963,
            201903230964,
            201903230965,
            201903230966,
            201903230967,
            201903230968,
            201903230969,
            201903230970,
            201903230971,
            201903230972,
            201903230973,
            201903230974,
            201903230975,
            201903230976,
            201903230977,
            201903230978,
            201903230979,
            201903230980,
            201903230981,
            201903230982,
            201903230983,
            201903230984,
            201903230985,
            201903230986,
            201903230987,
            201903230988,
            201903230989);

        $kaijiang=array(
            20190322288,
            20190323001,
            20190323002,
            20190323003,
            20190323004,
            20190323005,
            20190323006,
            20190323007,
            20190323008,
            20190323009,
            20190323010,
            20190323011,
            20190323012,
            20190323013,
            20190323014,
            20190323015,
            20190323016,
            20190323017,
            20190323018,
            20190323019,
            20190323020,
            20190323021,
            20190323022,
            20190323023,
            20190323024,
            20190323025,
            20190323026,
            20190323027,
            20190323028,
            20190323029,
            20190323030,
            20190323031,
            20190323032,
            20190323033,
            20190323034,
            20190323035,
            20190323036,
            20190323037,
            20190323038,
            20190323039,
            20190323040,
            20190323041,
            20190323042,
            20190323043,
            20190323044,
            20190323045,
            20190323046,
            20190323047,
            20190323048,
            20190323049,
            20190323050,
            20190323051,
            20190323052,
            20190323053,
            20190323054,
            20190323055,
            20190323056,
            20190323057,
            20190323058,
            20190323059,
            20190323060,
            20190323061,
            20190323062,
            20190323063,
            20190323064,
            20190323065,
            20190323066,
            20190323067,
            20190323068,
            20190323069,
            20190323070,
            20190323071,
            20190323072,
            20190323073,
            20190323074,
            20190323075,
            20190323076,
            20190323077,
            20190323078,
            20190323079,
            20190323080,
            20190323081,
            20190323082,
            20190323083,
            20190323084,
            20190323085,
            20190323086,
            20190323087,
            20190323088,
            20190323089,
            20190323090,
            20190323091,
            20190323092,
            20190323093,
            20190323094,
            20190323095,
            20190323096,
            20190323097,
            20190323098,
            20190323099,
            20190323100,
            20190323101,
            20190323102,
            20190323103,
            20190323104,
            20190323105,
            20190323106,
            20190323107,
            20190323108,
            20190323109,
            20190323110,
            20190323111,
            20190323112,
            20190323113,
            20190323114,
            20190323115,
            20190323116,
            20190323117,
            20190323118,
            20190323119,
            20190323120,
            20190323121,
            20190323122,
            20190323123,
            20190323124,
            20190323125,
            20190323126,
            20190323127,
            20190323128,
            20190323129,
            20190323130,
            20190323131,
            20190323132,
            20190323133,
            20190323134,
            20190323135,
            20190323136,
            20190323137,
            20190323138,
            20190323139,
            20190323140,
            20190323141,
            20190323142,
            20190323143,
            20190323144,
            20190323145,
            20190323146,
            20190323147,
            20190323148,
            20190323149,
            20190323150,
            20190323151,
            20190323152,
            20190323153,
            20190323154,
            20190323155,
            20190323156,
            20190323157,
            20190323158,
            20190323159,
            20190323160,
            20190323161,
            20190323162,
            20190323163,
            20190323164,
            20190323165,
            20190323166,
            20190323167,
            20190323168,
            20190323169,
            20190323170,
            20190323171,
            20190323172,
            20190323173,
            20190323174,
            20190323175,
            20190323176,
            20190323177,
            20190323178,
            20190323179,
            20190323180,
            20190323181,
            20190323182,
            20190323183,
            20190323184,
            20190323185,
            20190323186,
            20190323187,
            20190323188,
            20190323189,
            20190323190,
            20190323191,
            20190323192,
            20190323193,
            20190323194,
            20190323195,
            20190323196,
            20190323197,
            20190323198,
            20190323199
        );

        $kaijiang_data=array('8,8,1,4,0',
            '2,7,7,6,9',
            '8,5,1,1,8',
            '9,8,5,5,3',
            '4,7,1,5,5',
            '9,4,1,4,7',
            '3,5,4,2,5',
            '4,4,9,5,8',
            '1,5,4,0,9',
            '3,4,8,9,6',
            '0,8,0,7,6',
            '5,8,9,4,3',
            '2,3,9,9,1',
            '5,5,1,8,4',
            '6,6,0,6,7',
            '9,2,0,5,2',
            '0,8,6,9,0',
            '4,0,3,6,1',
            '5,6,9,8,4',
            '3,2,4,1,4',
            '1,2,2,8,6',
            '0,2,1,3,8',
            '9,5,3,7,0',
            '9,4,5,2,1',
            '8,4,5,9,4',
            '3,7,2,6,8',
            '5,7,3,9,7',
            '7,9,8,7,5',
            '7,3,8,0,2',
            '1,6,6,8,1',
            '6,1,1,1,2',
            '6,4,0,4,5',
            '7,4,7,2,2',
            '7,8,5,5,5',
            '5,8,4,5,4',
            '3,9,5,8,3',
            '5,4,4,8,1',
            '5,3,5,7,7',
            '0,4,9,9,9',
            '1,0,2,4,6',
            '4,6,6,0,7',
            '8,5,7,2,3',
            '9,6,7,2,3',
            '7,7,1,3,4',
            '6,7,0,0,8',
            '1,6,8,0,7',
            '9,0,9,1,0',
            '6,1,2,2,8',
            '6,3,6,2,0',
            '1,5,8,4,1',
            '4,6,0,8,4',
            '1,5,4,1,9',
            '3,7,4,4,7',
            '8,6,0,4,7',
            '4,8,3,9,0',
            '6,3,7,8,2',
            '8,0,0,0,4',
            '2,3,0,2,4',
            '6,6,6,2,9',
            '0,0,6,9,7',
            '1,7,7,5,0',
            '9,9,8,0,8',
            '4,5,6,6,1',
            '8,0,2,9,6',
            '0,9,4,8,0',
            '3,3,5,0,7',
            '6,5,4,0,4',
            '3,8,9,3,6',
            '4,5,7,5,1',
            '5,6,1,4,7',
            '3,7,2,7,8',
            '8,5,9,9,2',
            '6,9,7,8,7',
            '0,0,4,4,0',
            '0,1,8,4,5',
            '3,0,4,8,2',
            '5,2,2,6,5',
            '7,2,2,0,2',
            '4,6,1,9,3',
            '1,8,8,2,9',
            '7,4,2,4,7',
            '2,5,1,7,4',
            '3,3,2,4,3',
            '8,4,6,8,5',
            '5,2,8,5,5',
            '9,3,4,3,3',
            '9,3,0,0,1',
            '3,9,7,9,4',
            '7,5,4,1,6',
            '0,1,6,2,8',
            '9,9,0,2,4',
            '5,3,6,5,1',
            '7,0,5,6,8',
            '7,4,4,8,3',
            '4,9,6,4,4',
            '7,2,6,7,3',
            '2,8,4,8,0',
            '2,7,7,9,4',
            '1,1,7,9,8',
            '4,6,4,3,4',
            '3,7,1,2,2',
            '5,0,0,3,8',
            '2,7,6,6,8',
            '3,2,9,6,5',
            '2,3,2,8,6',
            '6,9,3,7,6',
            '6,9,2,3,1',
            '4,8,8,9,3',
            '2,7,7,8,1',
            '7,5,5,3,0',
            '7,6,1,2,2',
            '1,8,2,4,5',
            '3,2,0,0,8',
            '9,2,5,5,7',
            '5,9,8,2,5',
            '8,7,9,7,5',
            '4,2,0,8,5',
            '8,0,5,5,7',
            '9,4,0,8,0',
            '4,4,8,7,0',
            '8,8,3,9,9',
            '8,2,8,6,6',
            '1,9,2,8,2',
            '8,9,5,9,9',
            '5,7,6,8,4',
            '9,1,1,4,8',
            '2,3,9,7,0',
            '7,5,4,7,4',
            '9,1,7,9,3',
            '8,7,6,1,1',
            '5,4,4,1,6',
            '3,1,7,7,3',
            '2,0,5,7,1',
            '6,8,9,3,9',
            '2,9,6,7,4',
            '6,4,2,6,4',
            '9,7,1,6,4',
            '2,9,7,3,8',
            '2,6,8,0,7',
            '4,7,0,5,8',
            '9,7,1,6,6',
            '6,5,0,9,5',
            '4,4,9,8,8',
            '5,2,8,5,2',
            '6,2,8,8,9',
            '2,1,7,5,4',
            '1,6,3,3,3',
            '6,5,0,2,5',
            '4,4,9,2,8',
            '8,0,2,1,3',
            '4,0,1,1,1',
            '1,1,3,7,0',
            '9,3,7,1,2',
            '1,9,8,7,0',
            '8,7,8,1,3',
            '4,6,3,1,7',
            '4,2,8,1,1',
            '2,0,3,8,1',
            '7,6,3,6,7',
            '6,0,0,5,5',
            '5,0,8,6,1',
            '6,7,9,3,8',
            '1,0,7,6,6',
            '6,3,6,8,9',
            '1,9,1,7,1',
            '2,2,7,3,6',
            '1,9,2,4,9',
            '3,0,4,4,8',
            '9,1,1,5,1',
            '6,2,7,4,6',
            '5,4,8,8,1',
            '9,4,4,8,8',
            '7,3,1,5,4',
            '6,2,9,7,3',
            '2,5,6,3,3',
            '5,3,3,8,6',
            '4,9,5,5,2',
            '1,7,6,6,4',
            '6,3,7,4,3',
            '6,0,4,6,7',
            '8,0,0,3,8',
            '8,7,4,9,0',
            '3,5,0,9,0',
            '7,0,5,9,4',
            '5,4,0,2,0',
            '5,3,9,8,6',
            '5,1,8,6,1',
            '4,6,6,7,7',
            '9,6,5,2,9',
            '5,0,6,0,2',
            '8,0,5,2,6',
            '8,2,1,4,5',
            '0,7,1,1,7',
            '3,6,0,1,9',
            '6,7,0,5,1',
            '8,8,9,9,5',
            '9,8,0,7,7',
            '2,9,7,5,6',
            '6,3,2,3,6',
            '7,2,7,2,6');
        /*$kaijiang_data=array(
            '3,8,2,9,7',
            '9,9,2,5,8',
            '0,7,1,8,6',
            '6,1,5,8,2',
            '1,5,0,2,1',
            '4,8,7,5,1',
            '2,2,6,0,7',
            '8,7,6,2,4',
            '9,4,5,3,7',
            '8,8,3,7,4',
            '0,5,3,4,2',
            '3,7,8,9,9',
            '4,2,7,2,0',
            '3,8,8,5,5',
            '8,8,4,1,5',
            '4,1,3,8,6',
            '7,0,4,4,5',
            '9,9,0,4,3',
            '2,7,9,9,4',
            '9,1,5,5,5',
            '4,4,0,4,5',
            '4,4,6,8,2',
            '1,8,5,2,0',
            '0,5,3,0,5',
            '4,9,5,5,9',
            '2,9,2,5,2',
            '1,9,0,0,2',
            '5,4,6,0,5',
            '9,4,8,4,6',
            '9,2,8,2,2',
            '9,9,7,4,3',
            '1,2,3,4,5',
            '2,2,0,3,1',
            '6,8,9,4,0',
            '8,8,3,7,2',
            '9,4,5,1,7',
            '3,4,3,1,6',
            '7,5,0,1,2',
            '1,4,9,3,3',
            '5,6,8,8,3',
            '4,5,7,6,5',
            '7,7,8,8,0',
            '2,3,9,0,8',
            '0,0,4,9,0',
            '1,0,1,2,6',
            '5,7,1,6,8',
            '9,5,8,5,1',
            '8,4,9,0,2',
            '0,4,8,3,1',
            '7,5,3,7,2'
        );
        $kaijiang_data=array(
            '1,8,8,5,1','6,6,1,2,3','0,1,1,6,7','7,4,4,1,6',
'0,0,2,4,1',
'8,3,5,9,1',
'3,3,5,8,0',
'8,0,9,3,5',
'0,2,3,4,8',
'7,5,3,6,8',
'5,1,5,5,1',
'4,2,4,4,6',
'3,6,1,5,5',
'9,8,9,0,0',
'1,7,0,3,2',
'0,8,9,3,4',
'7,7,6,3,7',
'6,1,0,9,1',
'5,1,6,0,1',
'3,9,7,1,0',
'7,6,0,8,6',
'2,7,5,3,6',
'6,8,6,5,1',
'1,3,6,2,2',
'9,6,7,5,3',
'7,2,7,4,3',
'4,4,7,8,4',
'2,8,6,1,2',
'7,7,2,7,0',
'0,1,6,7,0',
'4,0,0,0,9',
'7,4,3,4,2',
'0,2,5,4,6',
'0,2,8,4,7',
'6,7,0,2,4',
'4,4,4,1,2',
'0,9,3,6,1',
'5,1,8,2,1',
'8,3,3,0,6',
'0,1,6,3,6',
'8,7,3,9,6',
'9,2,5,0,9',
'3,4,6,6,3',
'9,2,8,6,2',
'0,2,8,3,2',
'1,8,5,9,9',
'2,0,5,3,9',
'6,8,0,1,9',
'3,2,7,8,5',
'4,4,3,7,9'
        );
          $kaijiang_data=array(
               '5,1,8,2,1',
               '8,3,3,0,6',
               '0,1,6,3,6',
               '8,7,3,9,6',
               '9,2,5,0,9',
               '3,4,6,6,3',
               '9,2,8,6,2',
               '0,2,8,3,2',
               '1,8,5,9,9',
               '2,0,5,3,9',
               '6,8,0,1,9',
               '3,2,7,8,5',
               '4,4,3,7,9',
               '7,1,6,3,1',
               '0,8,5,4,9',
               '4,0,8,6,9',
               '4,5,8,0,8',
               '6,7,7,7,2',
               '4,6,3,7,5',
               '7,3,3,9,8',
               '2,7,7,6,2',
               '0,9,4,7,4',
               '5,8,1,2,2',
               '9,3,9,9,2',
               '8,2,1,3,8',
               '7,1,7,9,2',
               '0,8,2,6,4',
               '5,8,5,5,4',
               '6,5,1,2,4',
               '3,5,4,2,6',
               '2,8,4,7,6',
               '4,1,0,1,7',
               '3,0,9,2,8',
               '4,0,0,2,4',
               '1,7,9,1,5',
               '6,3,2,4,9',
               '3,6,5,4,3',
               '2,8,6,7,3',
               '7,2,9,0,4',
               '9,6,7,9,4',
               '9,5,6,5,5',
               '4,2,0,1,7',
               '0,4,9,0,3',
               '3,5,9,2,3',
               '9,1,4,6,0',
               '6,4,4,1,3',
               '4,1,6,6,1',
               '5,0,8,3,6',
               '1,5,7,4,5',
               '6,4,6,5,5'
           );

   */

        $kaijiang_data=array(
            '5,9,0,0,3',
            '4,3,6,3,5',
            '3,6,2,5,9',
            '3,9,5,1,8',
            '1,9,4,4,1',
            '3,2,1,8,1',
            '6,7,9,6,5',
            '3,3,7,4,1',
            '8,3,2,0,2',
            '2,8,4,8,8',
            '5,4,1,6,8',
            '6,6,3,3,8',
            '9,8,9,5,4',
            '6,4,1,7,9',
            '7,1,0,0,5',
            '0,2,8,6,0',
            '9,8,0,0,9',
            '0,2,6,5,7',
            '2,7,3,6,4',
            '8,1,1,8,8',
            '6,6,0,5,8',
            '4,5,3,9,1',
            '7,7,6,3,3',
            '2,0,9,5,4',
            '9,2,0,3,1',
            '5,2,3,6,6',
            '5,0,2,6,4',
            '3,8,6,9,7',
            '9,6,2,8,8',
            '7,4,3,2,9',
            '0,4,2,3,6',
            '1,5,4,7,1',
            '5,9,0,4,7',
            '8,8,5,4,8',
            '5,4,5,5,6',
            '8,3,9,3,8',
            '3,4,2,8,1',
            '7,9,8,3,2',
            '6,6,4,3,9',
            '6,0,6,3,9',
            '3,5,7,9,2',
            '0,5,9,8,2',
            '8,0,0,5,9',
            '1,0,7,8,4',
            '3,3,8,7,2',
            '0,6,4,4,6',
            '3,8,1,7,8',
            '9,3,0,4,1',
            '4,3,2,9,4',
            '0,5,7,8,1',
            '7,4,1,9,2',
            '8,2,9,1,9',
            '4,8,7,9,5',
            '4,8,5,5,1',
            '9,0,2,1,6',
            '6,6,1,5,2',
            '1,9,6,9,0',
            '4,6,1,8,0',
            '3,5,6,6,4',
            '4,5,8,1,6',
            '4,0,0,6,4',
            '7,3,9,1,9',
            '7,4,8,2,5',
            '8,4,7,5,2',
            '8,8,0,0,3',
            '0,5,8,6,2',
            '2,6,1,6,2',
            '4,2,9,0,5',
            '7,2,3,9,1',
            '4,8,8,6,0',
            '4,7,0,8,6',
            '8,1,7,5,1',
            '6,9,5,6,5',
            '8,1,6,6,7',
            '2,7,1,0,4',
            '2,7,6,9,4',
            '5,1,7,7,6',
            '8,6,0,6,3',
            '0,2,5,0,2',
            '9,1,9,4,3',
            '0,9,1,8,0',
            '6,0,9,5,7',
            '7,9,3,8,6',
            '0,0,7,0,7',
            '7,2,4,7,4',
            '6,2,0,5,0',
            '0,3,8,3,2',
            '5,6,4,3,9',
            '4,0,4,5,9',
            '6,4,7,3,7',
            '8,7,1,7,4',
            '1,4,1,8,8',
            '6,4,4,4,5',
            '7,4,3,7,4',
            '2,6,4,1,8',
            '4,5,6,8,0',
            '2,4,3,5,8',
            '9,0,3,9,3',
            '3,1,8,0,8',
            '1,4,8,1,5',
            '2,2,4,1,9',
            '7,3,2,7,8',
            '5,0,9,9,5',
            '6,3,3,4,3',
            '0,4,4,3,5',
            '8,9,2,7,0',
            '8,4,4,9,1',
            '7,5,3,3,4',
            '5,7,1,6,1',
            '1,8,9,8,1',
            '0,9,0,8,2',
            '8,8,5,0,0',
            '8,8,8,1,3',
            '8,5,8,0,1',
            '2,1,3,6,9',
            '1,4,7,0,8',
            '2,0,3,6,8',
            '1,4,5,8,6',
            '6,1,9,4,0',
            '4,4,6,3,2',
            '9,7,9,2,1',
            '4,9,4,7,9',
            '8,7,4,2,0',
            '6,9,4,0,5',
            '9,3,5,5,1',
            '9,0,3,4,2',
            '8,9,1,6,0',
            '8,2,1,9,7',
            '7,9,7,5,1',
            '7,0,8,1,9',
            '2,6,6,2,5',
            '3,3,7,0,7',
            '0,6,6,9,6',
            '7,2,3,0,5',
            '5,9,1,5,2',
            '0,2,9,3,2',
            '6,5,0,6,2',
            '5,4,3,5,1',
            '6,0,1,2,5',
            '7,0,0,1,9',
            '8,8,3,3,7',
            '2,9,1,3,2',
            '9,4,2,8,7',
            '6,4,2,6,4',
            '7,5,3,5,4',
            '1,3,4,3,8',
            '0,0,7,0,3',
            '8,8,0,3,0',
            '5,4,2,6,2',
            '4,6,4,1,9',
            '0,9,0,2,9',
            '9,4,0,3,1',
            '0,6,3,5,5',
            '7,1,9,1,6',
            '4,3,1,1,9',
            '6,4,1,0,9',
            '5,2,6,7,8',
            '7,6,9,5,3',
            '7,9,6,0,1',
            '9,2,2,5,5',
            '5,1,2,3,8',
            '6,1,9,8,1',
            '8,8,5,0,6',
            '9,7,1,9,4',
            '3,3,3,5,6',
            '3,6,5,9,5',
            '3,0,7,5,7',
            '8,6,8,8,9',
            '8,9,3,5,0',
            '7,2,8,5,2',
            '6,1,7,5,5',
            '0,0,5,0,2',
            '2,8,8,7,4',
            '1,6,6,1,8',
            '2,1,5,2,4',
            '0,3,5,7,3',
            '7,9,5,9,7',
            '4,9,1,7,2',
            '0,8,6,4,4',
            '7,0,4,1,2',
            '3,8,6,4,0',
            '1,9,9,0,4',
            '6,1,0,0,4',
            '4,7,9,0,7',
            '1,5,0,3,1',
            '2,4,2,7,4',
            '2,2,8,7,0',
            '4,7,2,4,6',
            '7,8,3,5,9',
            '2,1,6,2,8',
            '2,5,3,1,9',
            '9,3,2,0,9',
            '2,5,7,2,5',
            '1,6,8,4,3',
            '1,1,5,8,0',
            '3,0,6,8,2',
            '8,9,2,7,1',
            '4,7,7,3,6',
            '4,9,9,6,7',
            '9,8,1,7,9'
        );
        $kaijiang_data=array(
            '3,9,1,5,7',
            '3,7,5,4,6',
            '6,4,0,7,0',
            '4,4,1,7,0',
            '8,4,5,1,2',
            '8,2,8,1,4',
            '5,2,8,2,4',
            '9,9,0,3,2',
            '3,6,3,3,9',
            '5,0,1,2,0',
            '6,4,9,6,1',
            '8,7,3,3,1',
            '0,5,3,4,6',
            '5,4,8,5,8',
            '6,4,4,1,3',
            '2,3,9,6,9',
            '2,0,7,1,5',
            '6,7,9,0,8',
            '7,2,3,0,5',
            '7,1,8,2,5',
            '9,3,2,5,0',
            '3,5,3,9,4',
            '0,5,4,5,2',
            '1,9,7,0,7',
            '8,8,8,2,2',
            '2,4,1,7,5',
            '1,8,4,3,5',
            '1,9,6,5,6',
            '3,5,6,0,1',
            '9,4,4,1,7',
            '9,3,1,5,4',
            '4,1,1,8,9',
            '4,3,2,9,7',
            '7,7,2,5,8',
            '3,7,7,4,8',
            '0,8,3,3,2',
            '7,3,1,4,1',
            '8,9,3,4,0',
            '6,7,6,1,2',
            '3,0,1,1,6',
            '2,9,7,8,4',
            '6,9,3,3,0',
            '6,2,3,0,5',
            '6,2,8,7,7',
            '3,0,0,8,8',
            '9,2,2,6,1',
            '2,9,0,2,6',
            '2,2,0,8,7',
            '2,6,3,9,0',
            '8,2,3,8,9',
            '5,1,5,7,6',
            '3,2,9,9,7',
            '6,6,1,7,8',
            '3,9,4,2,1',
            '1,1,8,2,8',
            '9,9,4,1,2',
            '0,5,1,3,1',
            '4,4,8,2,9',
            '3,5,7,5,6',
            '5,8,2,9,1',
            '8,4,9,9,9',
            '6,0,3,4,1',
            '4,8,3,1,0',
            '8,3,6,0,6',
            '7,9,5,1,0',
            '2,5,3,6,2',
            '5,7,9,3,6',
            '6,6,0,6,0',
            '1,2,1,2,2',
            '3,1,7,8,2',
            '9,4,0,6,1',
            '7,5,1,7,5',
            '5,9,4,3,2',
            '7,7,9,5,9',
            '4,1,7,6,1',
            '2,8,1,9,8',
            '1,8,4,3,0',
            '6,6,0,4,5',
            '9,3,1,3,4',
            '8,3,2,8,4',
            '1,7,2,0,0',
            '1,3,0,5,3',
            '5,3,6,2,9',
            '0,8,0,3,2',
            '5,5,0,1,1',
            '5,1,6,2,6',
            '7,1,3,1,4',
            '9,0,7,4,7',
            '9,5,2,0,1',
            '3,2,3,2,9',
            '1,6,6,3,9',
            '0,9,6,9,8',
            '4,3,9,8,8',
            '0,3,4,8,2',
            '5,0,5,1,6',
            '2,5,0,4,9',
            '5,8,8,7,2',
            '1,7,9,6,3',
            '8,4,9,6,8',
            '4,5,5,0,6',
            '8,3,2,4,4',
            '1,2,0,6,7',
            '5,4,7,9,1',
            '1,6,8,1,3',
            '7,4,2,9,0',
            '2,6,8,3,0',
            '0,2,4,9,7',
            '4,6,2,5,7',
            '1,9,9,4,8',
            '0,8,8,1,4',
            '1,5,2,1,9',
            '2,5,2,0,9',
            '9,5,6,1,4',
            '9,4,6,6,2',
            '3,6,9,2,7',
            '1,2,2,4,6',
            '5,3,3,8,3',
            '3,1,2,9,1',
            '9,2,2,4,4',
            '3,7,9,4,9',
            '5,1,5,7,0',
            '6,7,4,4,4',
            '4,6,6,7,0',
            '0,2,8,7,7',
            '5,7,0,9,0',
            '2,0,2,3,1',
            '5,9,7,2,3',
            '8,2,2,3,7',
            '4,5,6,6,9',
            '4,9,5,2,0',
            '4,0,8,5,1',
            '2,5,9,3,0',
            '8,5,9,4,7',
            '7,0,9,7,5',
            '7,1,1,7,6',
            '1,7,5,9,8',
            '6,5,6,3,8',
            '7,2,3,0,0',
            '1,1,0,5,0',
            '3,1,9,7,7',
            '5,4,1,0,1',
            '3,9,9,1,4',
            '9,5,3,0,3',
            '5,1,8,5,0',
            '5,3,7,7,7',
            '5,5,4,0,9',
            '6,5,7,0,3',
            '5,7,9,0,5',
            '1,4,3,1,5',
            '2,0,6,7,9',
            '7,8,7,6,8',
            '1,0,9,1,9',
            '5,5,0,6,3',
            '0,1,5,5,7',
            '2,0,0,2,1',
            '3,4,5,4,9',
            '9,6,9,0,7',
            '7,8,9,2,3',
            '1,9,6,7,0',
            '6,7,5,8,5',
            '1,5,9,4,2',
            '1,7,7,4,5',
            '0,1,1,0,9',
            '2,1,6,8,1',
            '3,1,3,6,8',
            '9,8,2,2,9',
            '1,2,4,7,3',
            '7,8,4,0,4',
            '0,3,9,9,7',
            '6,7,3,5,1',
            '1,1,9,8,4',
            '4,3,0,8,5',
            '9,2,4,4,5',
            '6,3,4,0,2',
            '5,3,8,5,2',
            '5,1,1,9,5',
            '3,8,8,9,8',
            '2,2,1,1,7',
            '3,6,2,3,1',
            '2,5,1,9,4',
            '0,0,6,5,4',
            '7,9,7,9,8',
            '8,5,9,3,8',
            '9,8,1,9,2',
            '9,4,6,2,3',
            '0,9,4,5,7',
            '6,1,0,6,4',
            '2,6,7,2,5',
            '2,2,2,2,5',
            '5,5,9,3,9',
            '4,0,1,9,2',
            '3,5,0,5,1',
            '4,8,7,3,9',
            '0,0,9,6,3',
            '4,9,6,3,1',
            '6,4,1,3,2',
            '6,6,2,7,9',
            '6,2,4,7,9',
            '3,3,3,1,4',
            '0,8,2,2,1'
        );

        $kaijiang_data=array(
            '9,6,2,5,6',
            '3,7,7,2,5',
            '1,8,7,9,8',
            '0,3,0,7,8',
            '4,1,4,9,9',
            '8,6,3,3,9',
            '0,3,2,3,5',
            '7,2,5,8,2',
            '3,4,8,8,0',
            '5,2,0,8,4',
            '6,9,5,2,2',
            '2,4,6,5,4',
            '4,9,3,9,1',
            '5,8,0,2,6',
            '3,0,0,8,3',
            '7,5,5,8,6',
            '7,8,1,1,0',
            '8,7,8,5,6',
            '2,8,9,1,5',
            '7,4,1,5,9',
            '0,7,3,9,2',
            '0,0,6,4,8',
            '7,5,1,4,7',
            '7,3,6,4,9',
            '9,6,2,9,9',
            '1,9,0,8,9',
            '3,6,8,7,2',
            '5,7,2,6,7',
            '8,0,4,5,8',
            '4,5,4,6,1',
            '6,2,3,6,6',
            '0,0,8,8,8',
            '3,2,5,8,9',
            '2,7,4,9,4',
            '2,8,4,2,4',
            '3,1,5,8,1',
            '1,7,9,7,8',
            '0,7,8,1,3',
            '0,4,5,3,8',
            '0,3,9,6,9',
            '0,7,2,9,1',
            '6,5,3,4,9',
            '0,0,3,7,7',
            '9,0,3,6,6',
            '1,6,9,6,5',
            '2,7,2,2,9',
            '3,0,2,0,3',
            '9,5,6,1,4',
            '8,1,8,7,0',
            '9,6,6,4,8',
            '6,7,9,6,7',
            '3,9,0,0,1',
            '9,0,4,3,7',
            '9,0,3,1,5',
            '7,7,7,6,5',
            '9,5,6,2,0',
            '7,7,5,8,6',
            '6,9,2,3,5',
            '9,5,9,0,4',
            '4,5,9,4,2',
            '5,1,8,6,5',
            '9,3,4,6,3',
            '4,2,6,8,2',
            '6,1,0,2,1',
            '7,3,3,8,5',
            '5,8,1,5,2',
            '5,9,4,0,2',
            '3,9,9,4,7',
            '0,6,7,7,3',
            '8,8,5,2,7',
            '1,0,3,6,4',
            '9,0,3,1,2',
            '7,5,3,0,0',
            '6,8,8,1,5',
            '6,0,0,0,7',
            '7,6,7,6,4',
            '7,5,8,4,4',
            '0,0,1,1,4',
            '2,5,8,6,5',
            '2,3,9,7,0',
            '0,1,0,4,5',
            '5,9,0,0,8',
            '5,7,4,6,5',
            '6,8,9,9,1',
            '7,3,6,7,5',
            '3,6,2,5,0',
            '0,3,1,8,4',
            '3,6,5,4,8',
            '9,2,5,5,5',
            '7,9,4,4,9',
            '3,3,0,0,3',
            '9,3,7,0,5',
            '2,4,9,1,4',
            '7,9,5,7,6',
            '6,0,7,6,8',
            '7,7,5,1,1',
            '1,1,3,1,5',
            '0,5,4,5,6',
            '6,8,0,9,0',
            '9,7,1,9,3',
            '6,4,6,4,3',
            '5,2,6,8,8',
            '5,5,6,9,1',
            '2,9,2,6,1',
            '8,3,9,8,8',
            '3,4,1,6,8',
            '0,6,5,7,5',
            '5,1,5,6,9',
            '9,0,5,2,8',
            '5,2,5,3,5',
            '3,9,6,8,9',
            '7,8,4,7,9',
            '6,4,7,8,4',
            '4,7,1,3,0',
            '9,4,2,0,8',
            '8,4,3,2,2',
            '9,9,8,6,4',
            '4,4,2,4,2',
            '5,5,0,5,3',
            '8,7,2,5,4',
            '9,4,2,5,5',
            '8,2,8,1,5',
            '2,8,1,7,1',
            '4,1,9,7,7',
            '1,7,3,8,6',
            '5,5,8,7,2',
            '6,7,6,3,1',
            '2,8,3,9,5',
            '2,9,2,2,8',
            '4,0,9,1,6',
            '8,0,5,5,4',
            '9,5,5,0,2',
            '0,9,2,9,9',
            '3,4,7,9,0',
            '8,6,2,5,6',
            '2,5,8,7,0',
            '3,8,4,3,3',
            '4,2,5,5,4',
            '3,3,5,4,6',
            '0,6,0,5,9',
            '4,5,1,3,2',
            '4,3,4,9,2',
            '5,1,9,2,4',
            '8,3,7,8,3',
            '1,5,5,9,0',
            '5,8,3,4,1',
            '1,2,4,5,5',
            '0,7,7,6,1',
            '6,4,2,5,4',
            '8,3,5,6,3',
            '3,7,9,5,8',
            '2,3,3,7,5',
            '7,7,3,9,4',
            '0,1,3,3,8',
            '5,1,2,8,1',
            '1,2,7,1,9',
            '8,3,1,2,9',
            '6,1,7,9,6',
            '2,0,2,2,3',
            '7,6,4,2,3',
            '9,6,9,5,7',
            '6,7,6,4,9',
            '8,0,6,7,0',
            '7,2,2,2,0',
            '1,9,0,1,9',
            '9,7,9,5,0',
            '4,0,0,1,3',
            '2,8,0,2,1',
            '5,7,5,5,4',
            '4,3,4,7,3',
            '6,2,0,8,8',
            '9,2,1,1,7',
            '5,3,1,9,2',
            '5,4,3,8,7',
            '2,5,7,6,3',
            '4,3,7,8,9',
            '2,5,3,9,4',
            '2,8,1,7,2',
            '3,4,3,7,9',
            '8,9,4,0,1',
            '5,7,7,4,0',
            '4,6,3,0,3',
            '3,3,9,1,2',
            '2,7,4,7,4',
            '9,9,6,6,1',
            '7,4,3,6,0',
            '5,7,3,9,3',
            '4,3,5,0,7',
            '9,8,1,9,5',
            '5,2,0,9,1',
            '5,6,8,9,6',
            '7,8,6,1,1',
            '4,7,2,0,9',
            '5,5,2,7,2',
            '7,6,7,3,7',
            '4,3,4,1,1',
            '4,2,2,9,2',
            '9,0,0,8,4',
            '3,5,5,8,6',
            '9,0,5,7,2'
        );
           $last_kaijang=array(); //上期开奖
           $zmoney=10000;
           $zj = 0;
           $kui = 0;
           $fangan = 7;
           $lianguan = 0;
           $leijituzhu = 0;
           $sum = 0;
           $tuzhucishu = 0;
           $shibaicishu = 0;
           $lianguarest= 0;
           $dingqirest= 0;
           $rand_num = rand(1, 100);
           echo $rand_num;
           echo "从这里开始：<br>";
           foreach ($kaijiang_data as $k=>$v){
               //计算本期开奖号码
               $dangqi=explode(',',$v);
               $dangqi_erxing=array($dangqi[3], $dangqi[4]);

               //开出对子了暂停一期

               if($dangqi[3]==$dangqi[4]){
                   $last_kaijang = $dangqi_erxing;
                   $sum += 1;
                   echo $kaijiang[$k]."开奖号码：".$v;
                   echo "<br><font color='blue'>=================对子休息一期============休息分隔线=======================================</font><br>";
                   continue;
               }

               if($sum<$rand_num){
                   $last_kaijang = $dangqi_erxing;
                   $sum += 1;
                   echo $kaijiang[$k]."开奖号码：".$v;
                   echo "<br><font color='blue'>=================开始============休息分隔线=======================================</font><br>";
                   continue;
               }
               $yushu = $sum % 8;   //连结8轮后休息两轮


               if($lianggua>=$fangan){
                   $lianguarest += 1;
                   $dangqianfangan = 0;
                   $benci_tz = 0;
                   $sum += 1;
                  $last_kaijang = $dangqi_erxing;
                   echo "<br><font color='blue'>=================连挂===========休息分隔线=======================================</font><br>";
                   echo $kaijiang[$k]."开奖号码：".$v;
                   echo "<br><font color='blue'>=================连挂============休息分隔线=======================================</font><br>";
                   $lianggua = 0; //归零重新开始
                   continue;
               }
   /**/
                                   if($yushu>6 && $sum>8){
                                      $last_kaijang = $dangqi_erxing;
                                       $dingqirest += 1;
                                        $sum += 1;
                                        echo "<br><font color='green'>=============================休息分隔线=======================================</font><br>";
                                        echo $kaijiang[$k]."开奖号码：".$v;
                                        echo "<br><font color='green'>=============================休息分隔线=======================================</font><br>";
                                        continue;
                                    }



            if(empty($last_kaijang)){
                $last_kaijang = $dangqi_erxing;
                continue;
            }else{

                if($dangqianfangan>=1 && $dangqianfangan<=$fangan ){

                    switch ($dangqianfangan)
                    {
                        case 1:
                            $tuzhubeishu = 2;
                            $tzje=count($ss)*0.2*$tuzhubeishu;   //第2次2倍
                            break;
                        case 2:
                            $tuzhubeishu = 4;
                            $tzje=count($ss)*0.2*$tuzhubeishu;    //第3次4倍
                            break;
                         case 3:
                            $tuzhubeishu = 8;
                            $tzje=count($ss)*0.2*$tuzhubeishu;    //第3次4倍
                            break;
                         case 4:
                            $tuzhubeishu = 16;
                            $tzje=count($ss)*0.2*$tuzhubeishu;    //第3次4倍
                            break;
                         case 5:
                            $tuzhubeishu = 32;
                            $tzje=count($ss)*0.2*$tuzhubeishu;    //第3次4倍
                            break;
                         case 6:
                            $tuzhubeishu = 64;
                            $tzje=count($ss)*0.2*$tuzhubeishu;    //第3次4倍
                            break;
                        case 7:
                            $tuzhubeishu = 128;
                            $tzje=count($ss)*0.2*$tuzhubeishu;    //第3次4倍
                            break;

                         default:
                            $dangqianfangan = 0;//当前方案归零
                            $benci_tz = 0;
                            $tuzhubeishu = 1;
                            $ss = $this->suoshui($last_kaijang);   //3次不中，重新开始
                            $tzje=count($ss)*0.2;
                            break;
                    }

                }else{
                    $tuzhubeishu = 1;
                    $sss = $this->suoshui($last_kaijang);
                    $ss = $sss['list'];
                    $tzje=count($ss)*0.2;
                }

                if($v[3]==$v[4]){
                    $last_kaijang = $dangqi_erxing;
                    $sum += 1;
                    echo $kaijiang[$k]."开奖号码：".$v;
                    echo "<br><font color='blue'>=================对子休息一期============休息分隔线=======================================</font><br>";
                    continue;
                }

                $tzje = $tzje * 10;  //元起
                $zmoney = $zmoney - $tzje;
                $leijituzhu += $tzje;//累计投注
                $tuzhucishu += 1;
                if(in_array($dangqi_erxing,$ss)){
                    $jiangjin = $tuzhubeishu * 192;
                    $zmoney += $jiangjin;
                    $zj += $jiangjin;
                    $benci_tz += $tzje;//本轮投资
                    echo $kaijiang[$k]."开奖号码：".$v.",投注号码:".json_encode($sss)."。本次投注金额：".$tzje."元。投注结果：中@奖。投注倍数{$tuzhubeishu}，本期奖金：".$jiangjin.".累计奖金：".$zj;
                    echo "<br>";
                    $yk = $jiangjin - $benci_tz;
                    echo "本轮累计投注：{$benci_tz},中奖金额：{$jiangjin},本轮赢亏：{$yk}<br>";
                    echo "累计投注金额：{$leijituzhu},累计中奖金额：{$zj}";
                    echo "<br>";
                    echo "最终帐户余额：" . $zmoney ;
                    $dangqianfangan = 0;
                    $benci_tz = 0;
                    echo "<br>";
                    $sum += 1;
                    $zhongjiancishu += 1;
                    echo "=============================我是豪华的分隔线=========================================";
                    echo "<br>";
                    $liangzhong += 1;
                    $lianggua = 0;
                }else{
                    $shibaicishu += 1;
                    $dangqianfangan += 1;
                    $benci_tz += $tzje;
                    $kui += $tzje;
                    echo $kaijiang[$k]."开奖号码：".$v.",投注号码:".json_encode($sss)."。投注金额：".$tzje."元。投注结果：<font color='red'>挂</font>。累计亏损：".$kui;
                   if($dangqianfangan==$fangan){
                       $dangqianfangan = $dangqianfangan;
                       $lianguan += 1;
                       $yk = -$benci_tz;
                       echo "<br>";
                       echo "<font color='red'>============================失败分隔线=========================================";
                       echo "<br>";
                       echo "已经连挂{$fangan}次";
                       echo "<br>";
                       echo "本轮累计投注：{$benci_tz},中奖金额：0,本轮赢亏：{$yk}.";
                       echo "累计投注金额：{$leijituzhu},累计中奖金额：{$zj}";
                       echo "<br>";
                       echo "最终帐户余额：" . $zmoney ;
                       echo "<br>";
                       $sum += 1;
                       echo "=============================失败分隔线=========================================</font>";
                       echo "<br>";
                   }
                    echo "<br>";
                    $liangzhong = 0;
                    $lianggua += 1;
                }
                $last_kaijang = $dangqi_erxing;
            }
            if($zmoney>14000){
                //超过预期
                echo "<font color=',8a2be2'>止赢</font>";
                break;
            }

            if($zmoney<1000){
                //超过预期
                echo "<font color=',8a2be2'>止损</font>";
                break;
            }

        }



      //  $zhongjianlv=round($zhongjiancishu/$sum,4)*100;
        $zhongjianlv2=round($zhongjiancishu/$tuzhucishu,4)*100;

        echo "中次数：{$zhongjiancishu},失败次数：{$shibaicishu}<br>";
        echo "投注次数：{$tuzhucishu},共计次数：{$sum}<br>";
        echo "连挂休息：{$lianguarest},定期休息次数：{$dingqirest}<br>";


        echo "最终：" . $zmoney . ",中奖：" . $zj . "。亏损：" . $kui."持续连挂：{$lianguan}次,共计进行投资{$sum}轮,中奖次数：{$zhongjiancishu}。中奖率：{$zhongjianlv2}%";




    }


    function suoshui($last_kaijang){

        switch ($last_kaijang[1])
        {
            case 0:
            case 3:
            case 5:
            case 8:
             $danma=array("0","3","6","9","2","5","8");
            $tdan = array("1", "4", "7");
             break;
            case 1:
            case 4:
            case 6:
            case 9:
             $danma=array("0","3","6","9","1","4","7");
            $tdan = array("2", "5", "8");
             break;
            case 2:
            case 7:
             $danma=array("2","5","8","1","4","7");
            $tdan = array("0", "3", "6", "9");
             break;

        }
        $danma_tiaojian = 1;
        $hezhi=array($last_kaijang[1]+$last_kaijang[0]);
        $kuadou=array(abs($last_kaijang[1]-$last_kaijang[0]));
     //   $shiwei = array("1","3","6","8");
        $gewei = array();

        $erxing = array();
        for($d=0;$d<10;$d++){
            for($e=0;$e<10;$e++){
                $erxing[]=array($d,$e);
            }
        }

        foreach ($erxing as $k=>$v){

                       $s=array_intersect($v, $danma);   //胆码测试
                        $count_s = count($s); //胆码出现次数

             /*            if($count_s==1 || $count_s==2){
                            //保留出现一次或是两次的
                        }else{
                            unset($v);
                            continue;
                        }
*/

                        if($count_s!=$danma_tiaojian){  //不符合条件，直接销毁，进入下一个  对子
                            if($count_s==2 && $v[0]==$v[1]){  //出现两次
                                //保留对子
                            }else{
                                unset($v);
                                continue;
                            }
                        }



            //省略跨度
            $kua_v = abs($v[0] - $v[1]);
            if (in_array($kua_v, $kuadou)) {  //杀跨度
                unset($v);
                continue;
            }

            $he_v = abs($v[0] + $v[1]);
            if (in_array($he_v, $hezhi)) {  //杀和值
                unset($v);
                continue;
            }

            //定位杀
            if (in_array($v[0], $shiwei)) {  //杀十位
                unset($v);
                continue;
            }
            //定位杀
            if (in_array($v[1], $gewei)) {  //杀个位
                unset($v);
                continue;
            }

            $zhongji_array['list'][] = $v;
        }


        foreach ($tdan as $t){
            foreach ($tdan as $k){
                if($t!=$k){
                    $zhongji_array['fujia'][]=array($t,$k);
                }
            }
        }

        $zhongji_array['last'] = $last_kaijang;
        return $zhongji_array;
    }


    function suoshui1368($last_kaijang){


        $hezhi=array($last_kaijang[1]+$last_kaijang[0]);
        $kuadou=array(abs($last_kaijang[1]-$last_kaijang[0]));
        $shiwei = array("1","3","6","8");
        $gewei = array();

        $erxing = array();
        for($d=0;$d<10;$d++){
            for($e=0;$e<10;$e++){
                $erxing[]=array($d,$e);
            }
        }

        foreach ($erxing as $k=>$v){





            //省略跨度
            $kua_v = abs($v[0] - $v[1]);
            if (in_array($kua_v, $kuadou)) {  //杀跨度
                unset($v);
                continue;
            }

            $he_v = abs($v[0] + $v[1]);
            if (in_array($he_v, $hezhi)) {  //杀和值
                unset($v);
                continue;
            }

            //定位杀
            if (in_array($v[0], $shiwei)) {  //杀十位
                unset($v);
                continue;
            }
            //定位杀
            if (in_array($v[1], $gewei)) {  //杀个位
                unset($v);
                continue;
            }

            $zhongji_array['list'][] = $v;
        }
        $zhongji_array['last'] = $last_kaijang;
        return $zhongji_array;
    }

    function suoshui012($last_kaijang){

        switch ($last_kaijang[1])
        {
            case 0:
            case 3:
            case 6:
            case 9:
                $danma=array("0","3","6","9");
                $tdan = array("1", "4", "7");
                break;
            case 1:
            case 4:
            case 7:
                $danma=array("1","4","7");
                $tdan = array("2", "5", "8");
                break;
            case 2:
            case 5:
            case 8:
                $danma=array("2","5","8");
                $tdan = array("0", "3", "6", "9");
                break;

        }
        $danma_tiaojian = 1;
        $hezhi=array($last_kaijang[1]+$last_kaijang[0]);
        $kuadou=array(abs($last_kaijang[1]-$last_kaijang[0]));

        $hezhi=array($last_kaijang[1]+$last_kaijang[0]);
        $kuadou=array(abs($last_kaijang[1]-$last_kaijang[0]));
     //   $shiwei = array("1","3","6","8");
        $gewei = array();

        $erxing = array();
        for($d=0;$d<10;$d++){
            for($e=0;$e<10;$e++){
                $erxing[]=array($d,$e);
            }
        }

        foreach ($erxing as $k=>$v){


            $s=array_intersect($v, $danma);   //胆码测试
            $count_s = count($s); //胆码出现次数

            /*            if($count_s==1 || $count_s==2){
                           //保留出现一次或是两次的
                       }else{
                           unset($v);
                           continue;
                       }
*/

            if($count_s!=$danma_tiaojian){  //不符合条件，直接销毁，进入下一个  对子
                if($count_s==2 && $v[0]==$v[1]){  //出现两次
                    //保留对子
                }else{
                    unset($v);
                    continue;
                }
            }



            //省略跨度
            $kua_v = abs($v[0] - $v[1]);
            if (in_array($kua_v, $kuadou)) {  //杀跨度
                unset($v);
                continue;
            }

            $he_v = abs($v[0] + $v[1]);
            if (in_array($he_v, $hezhi)) {  //杀和值
                unset($v);
                continue;
            }

            //定位杀
            if (in_array($v[0], $shiwei)) {  //杀十位
                unset($v);
                continue;
            }
            //定位杀
            if (in_array($v[1], $gewei)) {  //杀个位
                unset($v);
                continue;
            }

            $zhongji_array['list'][] = $v;
        }
        $zhongji_array['last'] = $last_kaijang;
        return $zhongji_array;
    }
    
    function danmafangan($last_kaijiang){
        $lastjiang = implode("", $last_kaijiang);
        switch ($lastjiang){
            case 00:
            case 05:
            case 14:
            case 19:
            case 32:
            case 37:
            case 50:
            case 55:
            case 64:
            case 69:
            case 82:
            case 87:            
                $sama=array("2","3","8");               
                break;
                
            case 01:
            case 02:
            case 11:
            case 20:
            case 25:
            case 24:
            case 70:
            case 75:
            case 42:
            case 38:
            case 39:
            case 33:
            case 34:
            case 47:
            case 52:
            case 57:
            case 51:
            case 56:
            case 61:
            case 66:
            case 74:
            case 79:
            case 83:
            case 84:
            case 88:
            case 89:
            case 92:
            case 97:         
                $sama=array("0","4","5");               
                break; 
                
            case 03:
            case 04:
            case 13:
            case 09:
            case 21:
            case 22:
            case 26:
            case 27:
            case 31:
            case 36:
            case 40:
            case 44:
            case 45:
            case 49:
            case 53:
            case 54:
            case 58:
            case 59:
            case 63:
            case 68:
            case 71:
            case 72:
            case 76:
            case 77:
            case 81:
            case 86:
            case 90:
            case 94:
            case 95:
            case 99:           
                $sama=array("2","6","7");               
                break;
            case 06:
            case 07:
            case 16:
                $sama=array("0","4","5");               
                break;
            case 10:
            case 15:
            case 23:
            case 28:
            case 41:
            case 46:
            case 60:
            case 65:
            case 73:
            case 78:
            case 91:
            case 96:           
                $sama=array("3","4","9");               
                break; 
            case 12:
            case 17:          
            case 30:
            case 35:
            case 43:
            case 48:
            case 62:
            case 67:
            case 80:
            case 85:
            case 93:
            case 98:
                $sama=array("1","5","6");               
                break;
            
        }


        $erxing = array();
        for($d=0;$d<10;$d++){
            for($e=0;$e<10;$e++){
                $erxing[]=array($d,$e);
            }
        }

        foreach ($erxing as $k=>$v){
            //定位杀
            if (in_array($v[0], $sama)) {  //杀十位
                unset($v);
                continue;
            }
            //定位杀
            if (in_array($v[1], $sama)) {  //杀个位
                unset($v);
                continue;
            }

            $zhongji_array['list'][] = $v;
        }
        $zhongji_array['last'] = $lastjiang;
        return $zhongji_array;

    }


    function curl($url){
        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL, $url);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
        $data = curl_exec($curl);
        curl_close($curl);
        return $data;
    }

    public function haoma(){
        $this->display();
    }
    public function gethaoma(){
        $data=array($_REQUEST['shiwei'], $_REQUEST['gewei']);
        if($_REQUEST['fangan']==1){
            $sss=$this->suoshui($data);
        }else{
            $sss=$this->suoshui1368($data);
        }

        $ss = $sss['list'];
        $count = count($ss);
        $str = "";
        foreach ($ss as $k=>$v){
            $str .= " " . implode("", $v);
        }
        $ssf = $sss['fujia'];
        $str2 = "";
        foreach ($ssf as $k=>$v){
            $str2 .= " " . implode("", $v);
        }

       // echo $str;
        echo json_encode(array("list"=>$str, "count" => $count, "fujia" => $str2));
    }

    public function curltest(){
        $url = 'http://www.906147.com/#/lotteryGame?type=1&typeId=60';
        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL, $url);
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
        $data = curl_exec($curl);
        var_dump($data);


    }






}